<?php
/*
+ --------------------------------------------------- +
|  Ineo Article Manager - Version 2.x
|  Copyright 2006-2007, Dan Cryer and William McGann
+ --------------------------------------------------- +

Ineo Article Manager is free software; you can redistribute it and/or modify
it under the terms of version 3 of the GNU General Public License as published by
the Free Software Foundation.

Ineo Article Manager is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Ineo; see the file License.txt.  If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

*/

class overview_plugin_welcome
{
	// ineo core
	var $core;
	// ipsclass
	var $ipsclass;
	
	// plugin data:
	var $plugin_data = array( 'tab_title' => 'Welcome', 'is_tab' => false, 'tab_order' => 2, 'enabled' => false );
	
	/**
	* Constructor - Set variables, load libraries, etc.
	*/
	function overview_plugin_welcome( &$core )
	{
		// Set variables:
		$this->core     =& $core;
		$this->ipsclass =& $this->core->ipsclass;
		
		if( !empty($this->ipsclass->vars['ineo_welcomemessage']) )
		{
			$this->plugin_data['enabled'] = true;
		}
		// Set lang-friendly title:
		//$this->plugin_data['tab_title'] = $this->ipsclass->lang['ineo_optab_recentedits'];
	}
	
	/**
	* Return plugin data to the core 
	*/
	function get_data()
	{
		$msg = $this->ipsclass->vars['ineo_welcomemessage'];
		return $msg;
	}
}

?>